package com.example.communitypro.mapper;

import com.example.communitypro.pojo.CommunityInformation;
import com.example.communitypro.pojo.CommunityManagement;
import com.example.communitypro.pojo.UserInformation;

import java.util.List;

public interface CommunityManagementMapper {
    int deleteByPrimaryKey(Integer managementNo);

    int insert(CommunityManagement record);

    int insertSelective(CommunityManagement record);

    CommunityManagement selectByPrimaryKey(Integer managementNo);

    int updateByPrimaryKeySelective(CommunityManagement record);

    int updateByPrimaryKey(CommunityManagement record);

    List<CommunityInformation> selectByUser(Integer userNo);

    List<UserInformation> selectByCommunity(Integer communityNo);

    int deleteByUserAndCommunity(Integer userNO,Integer communityNo);
}